simplify doc script