making app and logger injectable