fix off-by-one errors for intro/outro and make dupe-dist explicit