added helper util for https://github.com/WPN-XM/WPN-XM/issues/278