prune unwanted scripts