finish pretty-writer constructor