server convert code