add class support