FIX: get first key from gateways list, rather than first value.
Set email and name in gateway data.