changed VM target from index.php to api.php