added tofile method and solved problem with verifying using PURE_BARCODE = true