add some comment
add more conf, but bugs remain
some change