making libheca compatible with kernel refactoring