mod of zxing to be leaner and simpler, for integration.