improved stall detection to accound for stepstates that got completed without the creation of the next stepstate