magicor: rebuild