move optionparser to common dir