added error reporting for fetching details