final adjustments to app.py