last changes from Mirko: endTime for runState