added main entry module and files for middlewares