hook up the flow