minor cleanup in app.Main