fixed up scripts