detach kernel