debugging app.py file V2