created seperate functionality to retrieve references for a dao