fixed interfaces to expect ByteBuffer as output/input