add timeout logic in netInit()