use read/write object