better handling of 'related-errors