adding url debugging code