refactored kernel interface, works reliable again