move scripts to lib folder