support excluding fields from the resource