further edits to get dmpt to work