rm must succeed for packaging to work