fixed bugs; got DMS to work with rxn