detector: remove bloat from scripts