added read/write functions