make writerT as well from non-flat typedef