add check for migrate script