chain of responsibility and mediator