a few migration script tweaks