move rank module out of patmgr