various program utils (command-line)