build option processor

build option processor, but requires many more tests.