Autoloader is case sensitive on ec2 so made some changes to autoloader in index.php