adaption to simenv
adapted to new dmmodule.h
merge with master