started work on RPC interface