set ingress and egress field to optional