creating a better resource serving schema