More improvements to schema APIs