add argument to read... and write...