solved segmentation fault in dms modul 2