renamed dirhooks variables
implemented basic unload