write and read something