reduce flask dependency