update examples to make streamlined, more general sugar for running commands