updated command line parser