basic readURL and updateURL functionality