s2s: some receive code