separating into default flags and api