setting templateEngine to null by default