adding a helper method to run scripts