Add support for baselayer in _prefs.