modified batch run-moses