added a network timeout of 5 seconds