added missing code to support byte ranges passing through a compatible filter. commented unused code. to be discussed.