clean up scripts a little