refractor .write() method which will no longer deal with template subtitution;