s2s modified to support dynamic cipher specification