create writer (untested)