added create and resume to kernel.c