consolidated prefrences and UploadHelper, compiles but not tested