switching mako to inline kernel