move runFlow to flowEditor instances