add reader and writer instance