some small useful scripts