conditionally export diagBlock