reverting to smarty 3.1.17