added plan.erl to flow in anticipation of more complex plan data structure