many new functions and RankWrapper implemented