use notify_queue control state
 .
 .
 .