add private doc support