adds patch function for urlhash req