GPII-75: added almost working update functionality with passing tests. TODO: transform back from mm format prefs to flat.