added duplicate counter check to papi.event.init()