make reader and writer