rename magic to emagic