save state between call of Run