made simulation state case insensitive