Support for global protocol instance
Finish support for global and local protocol instances