little script fixes