added new rpc functions