added html_to_url and made minor fixes