running line encoding for policies on network, not tested
handled merge