conection and disconnection notifications, fixed some connections issues