opening a new buffer to copy all references