update scripts and other small fixes

update migration scripts and other small fixes