added more logging around actual state storage