small script utilities