started work on misc data encoding