adding notify and wait for connQ and msg state