update to more flexible kernel comparison