added code event exporting