need to confirm qmgr exits before using it