modify doc script so that it can be invocable without install/setup/sudo stuff