update lib/app.php