Changed kernel class to tmp env switcher