cleanup of ndex-unit