backup before buffers are changed