please raise exception here because `configPath` is a must have.