added --ping-only option