added exception handling for incorrect CL syntax