kinda working bad c event emitters