slightly more checking in orderdoc plugin