fixes up scripts a bit