adding logging to kernel. resolves #1