restless must init smarty by itself