added hook for inputHandler