fixes to error handling for listing operation