add sub doc support

fix