pick out service and port elements