rename modules directory to middleware
making changes to config paths