made model2 command line friendly