updated clean dirs for nc function