working on planFlow