added range header pagination and sort support