using base dir parameter to find neaded libs