fixed some api's for document blocks