patching index.php