add scanner as ime (not finished yet)