moduleMgr and gate init