added the function of get serve name