add some debugging around bus_emit