added api function to "reset" run