update deps
fix reordering to preserve indices