rewrite some ftp script files