Add prototype of "Safe mode"
[sync] 0.9.2.2
adjust to Windows