begin cleaning up dm2 file handling