initiate internal state for stateful operators