better check for subschema refs allows # ids