fix up and simplify url checking tool