more basic broker code