wip: separate consistencycheck from afterimport scripts.