automatically initialize $config['api']