update the middlbox agent part