track & restore open buffers