added code event listener exporting and fixed missing listener extend for code event exporting