adding support for HTTP lookups, with default to file lookup