reduce php error 'config.php not found' in api calls