add class-based config