adding magic encodings