the kernel script now returns the status instead of exiting, to make testing easier