added MosesWriter interface