tune handle_input decorator
fix some typo