split up setOption to make individual options verification more easily testable
show line number of problematic config option