working on bitshifts -- may have to port zbar this code is broken