implemented kernelstart. need to fix segfault