mtgwc code base init