check for malformed URLs just in case