add initial working version of binary transformer