Performance upgrade

performance upgrade and server ping query