further work on preferences migration