flask fixes