making cjson optional