added a check for kernel file