added opendoc check
added opendoc check