make gateway configurable