master is stateful