add the write stuff.