sample code for kernel to userland respose + small fixes