adds command line options and auto-run script