fix: setting mage and validation around it