added getSchema API