adding timeout to connection test so server doesnt hang