now accept both url and html file