keep track of stalled iterations
add types to records