fixed
added support for downloading files