added cleaner migration function for peer graph data