save settings as json, start work on scanmodes