updated for more dynamic pending invites method