added server connection methods