changed to adapt to psr
introduced ProfileMiddleware to profile your application