fixed global registries, added default registry