make gateway ports configurable