added support for json configs