minor fixes

app.py could be a better place for this (after init_site)