input method init