complete basic RPC infrastructure