implement state config