add base dir
cleanup and alert when finished