MH: code to run multiple chains