refactoring the url hash builder out.