bug fix - counting number of arguments for commands
bug fix - validation in cli