change directory and add lib