updated dump script, refactored mcat