support add extended classes

Signed-off-by: TomWu <phperwuhan@gmail.com>