[FIX] migration: allow debugging of migration scripts + avoid useless copies