fixes #833

made registration in  global scope so it happens as soon as plugin in
included