cleaned up user settings library - namespaced private functions