first version from ftp_download plugin