add global option
replace double to signle
fix path problem
add snapshot