adds the fetching comments function, need better test coverage