update preference and osx preference