common files for rpc