merged Ci-Smarty