add compatibility old version