working flask