various scripts and hacks