added server connection initialization and processing