added DM support