sh runner scripts for tools; big script refactoring