totally refactor the package setup on migrator.