use master as mediator.
refactor master as mediator.