qm commands