add base directory