add via function

This method adds Dispatcher as a global variable.