create and edit flows. not tested