Update to version 2.2

add settings
fix bug for auto mode