initial version of the command line script