current working version

has issue where kernel doesn't run for tifs but not sure if its issue
with code