added doc endpoint