scripts, which likely don't work for anyone but me. patches welcome