migrate source files to lib/