move library stuff into a new lib folder, require it