add writer for text record