add authentication encoding support for both new and old community versions