opts parsing and code to run lots of models