better remoteservertask handling, less access to shared prefs from background thread