added magicprefs