breaking out the mdr run script for simplicity