add a function to fetch a docs references