added server communications wrapper