added encoding for latest catalyst