fix _run to receive new messages as a return value from ami client