set up flow