add code to release ByteBuffers