fixes and debugs
fixes for the new version when uploading files to ftp