initialization hook in app.py