connect data with server