use a state machine for the zmq quality control camera server