added json serialization of settings