change parsing reference bytes + offsets