update optparse section to get logging working properly