add reset command for build
add operator << for buffers to io
copy contents to new memory on resize