misc changes to run_stan_model