smarty support added