add compatibility code