reader and writer into an io package