change back window.buffer checking to dump