Mako custom kernel part 1