added some basic filtering to rpc client