dont trap in a forever loop
analytics code added