added command-line interface