moving require to lib folder