updating naming pref only if it has changed

fixes #71