added server run mode.