implemented rpc fronted for bittorrent client simulator