fixing up scripts