before moving typingcheck to server-side
working on server side typing checking
broken