small fixes to resources and migration tools. Added a function to delete unit sites with specific unit classes.