added beginnings of binary version of enumerator