fix routings and add new smarty plugins