refactor broadcastOpenTeam
bugfixes