james was offered and accepted the duties of secretary and rabbi to the viscount of berkeley , member of the chief justices , but upon he reached ireland he found that the secretaryship had been given to another .
Swift worked for the Earl of Berkeley.