handler input event. fixes #10