generally useful scripts