bug fix to eliminate dying when base domain is not set via constant