fixes to json protocol