flask work