added kernel version check