ajax.php patch