add diff computation for global and non-global data
improve check for global-to-nonglobal diff: support multiple results files