added server initial code