add decodeUrl method