support ByteBuffer reader for my needs