raise exceptions for environment variables