added sendBroadcastToListeners method, some fixes and a fake host for debugging purposes