added doc handler implementation