added rpc.
work on 13-02-19