worked out bug in cmgr