refactor app.php with append_config()