reverted smarty back to 3.1.18 since 3.1.20 seems to have problems