read instructions from command line