some miscellaneous scripts