before_flow_init