rework mapping server (range) example based on indexes