moved middlewares into individual modules + moved index at the root of project