complete Server part

conmplete Server part
and  have finished enitial test