refactor broadcast server