simplified chunk ranges, cleaned up output