enhanced echo of smarty