fixed sharedPreferences and added manualLocation support