add ability to specify http or file