remove smarty dependency