mkdirp and clean
add ftp support