bugfix
dynamic bytebuffer refactoring