changed FTP connection handling