refactor ExtendBuf() interface for iparams