added support for downloading output files