a few bug fixes as testing continues of JSON schema