change code to lib directory