emitting actions to server