a bit of cleanup before export and pagerank are moved out