update app.py, include debug