work in progress for enCode classes