added special methods to read and write with original id
fixed original id placement