better support for diagnostics with try operation