finish server register