saved eventlogger code in old since we might need that later