minor updates to FTP logic