issue #164 - fixed incorrect require of streamline globals
issue #168 - second attempt to detect duplicate callbacks