handle extended repeat blocks