interface for document service