switched to using CodeIgniter