improve DALMwrapper.