get state id at init phase

Change-Id: Id65d90e2f0dc4f09b8f034bebcbbb4389583a41e