hooks now expose their own globals.