autowrite added