some useful scripts