output range concepts, generate_n, misc clean-up