rename sock to conn; update library references