custom template engine, plugin fixes