add waiting for mode

add waiting for mode