modify templates engine