reorder functions in qmgr.go