now accepting command-line arguments