clean up dmg stuff a bit