add compatibility util