handle errors the same for Get