add a script to run each doc