handle service gateway structure