added prefs synchronize to be sure that prefs get stored. this could be configured by a config boolean flag