add write stuff