added wise, fixed valid_url