added mode to json for cms