script to run with prepared R-dependent model grid