add document interface