change directory structure. create lib directory