simplify geturl and getloc; long invalid respondin unshorted