expose boolean interface, then use ints internally