fix multiple drivers of sd_state once for all by mergin processes.
Issue #24