use mkdirp. add logs. fix init params.