add code to kernel classes