ensure that URLs are unique
check for valid URL; test refactoring