[#90] moved middleware config to initializer file