change dir construction,add libs