moved mediator to lib folder