putting in basic optimization run script