enhance codeigniter and reduce manual configuration