added swig comparison between interface and policy