fixes to registry