added gateway config to api