handle {} in on as well as a schema object