more work on command line scripts