bugfix: get instance of registry
bugfix: getPath is not longer available