wait for instances