pass a factory to flagging state