added methods to advance and reset the spawner