create writer and reader library