use crecords for schemas allowing api queries