updated migrate script
updated core