small code changes

added utility to run the thing