do optencod utility more portable
use more variables with bool type