fixed bug introduced by changing command line parameter logic