finished functions, starting flask