make session\'s reader and writer private.