taken from CompOps GH; adapted to only update docs (needs testing)