add new interface to get fields of schema