ftp bug fixs & add encrypt ftp mode