check clean dir fun checks staging and nc base repos