added bug check to index.php allocated more memory in settings.php