fixing methods to run QMP commands