add broadcast code, which does not work yet