changing to modular flask