added support for ftp downloads