add xgcombine_buffer with weights