more flask friendly