move the flow_checker to the class