move kernel to core