move update_proposal_ranks to own file