renamed attribute to preventAutoWrite