early impl of state tracker