new BufferRelease logic with BoffersPool based on callback .
two buffer pools introduced (for input and output buffers)