helper scripts and tools