updating api to use api.config.php