rf decoder
extract patterns in enc/dec