refactored MCMCRun