refactoring sever message