a little script cleanup