add the lib folder and move code there