fixup up-down scripts