added registry
Merge https://github.com/YananJian/DS_RMI