removed teh socket test, this was nunessissary and causes problem when
there is no network connection.