kernel upgrade function fixes