removed weakregistry class