adds doc capability
copy paste error
pass resource buffers by reference