unable to pass protected sock as expected