adding support for documents created in android