.......PS. [ZBX-8188] reverted previous changes, because they try to access an opaque data structure directly