add some features for pai