init sample server and sample client