changed WAIT_RETRIEVE from 3 to 0