changeg latest_version.php to new endpoint