add rpc
Merge pull request #35 from xiangli-cmu/master

add rpc