make mage executable