make re more forgiving
fix all kinds of brokeness with this script after fixing #25