rebuild mage