added kernel check