updated some ftp functions