fix cmdline script