fixing CLI parsing errors