changed offset computation in ext bool opts to macro