updated inference lib with timeout modifications