Craige's scripts for ugly hacks