remove references to kernel in Instance class