add attributes to classes and virtual methods