added json based configuration