before implementing init_magic.