moving rebuild to topotools.