app.main corrected