Refine readers and writers