add compatibility funcs for 22.x