added init mediator method