version 1.02. the flow is restructured and tested