working version - url patch