extracting rpc layer