protecting connections