prepare for  mediator