add sub doc support

fix

fix