try to be a bit more clever in finding our libraries