refactoring to mediatr
refactoring to mediatr