removed bad server code