added writeback to server