breaking down the flow in separate processes