errors with mage