adding the sync ftp code back in