a little more flask-ifying