various general purpose scripts