added registration feature

to complete the functionality of connection registry.