Preparatory work for str8 and str12 encondings.
preparatory work