developed a new way to encode/decode class instances. now moving the code over to that