supports 'file:' as well as 'http(s):'