better handling for finding deprecate links