add: integration of smarty for testing purpose