added 5 second connection timeout