use timeout argument in iwait