fix for node v0.8 check own variables instead of cdifferent event emitter API