make sure to cast correctly Booleans in schema