fixed compiler errors in mediator and routes