add other checks
support web pages as well as files
support url option