update check_kernel to see the limits of the system