tweak to command-line script