bugs in app.py