mw1: added command line logic