FtpAgent: code modifications