added feature flag for results logging