added connexion and data sending