broadcasting fixes and tests
misc broadcasting fixes