refactored get-url including more generic callback wrappers