updated doc manager to use document service