handling command in serverstub