wire up the flow