ensure we return 1/0 consistently