copydata tweaks and 50% completed making the migration dynamic