use autod
use mkdirp to make sure dir exist