new migrate script + proper bash extensions