added checking of urls