Using type instead of boolean fields for domina scripts