updated for quail-flask