now unsing type/value when reading/writing points