added support for magicprefs