rename err.offset to err.start