added possibility to download from ftp