classes for cfg