added connexion and sending data