add base dir supports for env