adding some logging to app.php