refactor message system, add debug util to broadcast between clients