fix  read/write arg order