updated NWT state machine
updated NWT state machine