adding support for OffsetOutOfRange