create a plan flow