adding runOneOff function for Dan