add a function to get a single entry