taking care of the KPA sockets