finalized the directory cleanup