range banding revisited

Tentative and temporary ranging solution intended to soon be swapped out with a robust library.