added mediator and command