now chaching the handler type instead of the handler instance