replace classname registry

Fixes #1