added an enumerated type to start moving away from integer flags