working preferences + json mapping