adds connect to process method for remote rpc