update broker logic