need to copy buffers for cmd