add compatibility functions