adding send hat to server