add event listener for kernel