william lee , the consul , was an erudite man who had attained his position because of the influence of several influential and powerful friends such as elbridge gerry , george william erving , and james monroe .