extract currentstate from received data & load it.

extract currentstate from received data & load it.