add checkServer to the skin function