config is for gateway endpoint