added state_ready event triggered when the state plugin is done