improved range request handling