added a function to print client side messages on the server console