use a own class for the registry to prevent problems with hhvm