change application preferences getter to getGlobalPreferences