working version of KERNAL hack