added header, improved RpcEngine